<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>

<body>
  <div id="app">

    <!-- <costom-button btntext="确定"></costom-button> -->
    <costom-button >确定</costom-button>
    <costom-button >取消</costom-button>
    <costom-button >提交</costom-button>
    <costom-button ></costom-button>

  </div>
  <script>

    Vue.component('costom-button', {
      // props: ['btntext'],
      template: `
      <div>
        我是一个自定义按钮组件
          <slot>submit</slot>
        </div>
      `

    })

    var vm = new Vue({
      el: "#app",
      data: {
      }
    })

  </script>

</body>

</html>